<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css 图片库</title>
    <!--  -->
    <style type="text/css">
        div.img{
            float: left;
            border: 1px solid #7a991a;
            /*  我们做了一些修改  width:auto height:auto  text-align:center  */
        }

        div.img a:hover img{
            border: 4px solid #ff00ff;
        }

        div.desc{
            text-align: center;
            font-size: 12px;
            font-weight: normal;
            width: 150px;
            margin: 20px 5px 10px 5px;
        }
    </style>
</head>
<body>
    <div class="img">
        <a target="_blank" href="../images/eg_venus.gif">
            <img src="../images/eg_venus.gif" width="160" height="160">
        </a>
        <div class="desc">在此处添加图像的描述</div>
    </div>
    <div class="img">
        <a target="_blank" href="../images/eg_venus.gif">
            <img src="../images/eg_venus.gif" width="160" height="160">
        </a>
        <div class="desc">在此处添加图像的描述</div>
    </div>
    <div class="img">
        <a target="_blank" href="../images/eg_venus.gif">
            <img src="../images/eg_venus.gif" width="160" height="160">
        </a>
        <div class="desc">在此处添加图像的描述</div>
    </div>
    <div class="img">
        <a target="_blank" href="../images/eg_venus.gif">
            <img src="../images/eg_venus.gif" width="160" height="160">
        </a>
        <div class="desc">在此处添加图像的描述</div>
    </div>
    <div class="img">
        <a target="_blank" href="../images/eg_venus.gif">
            <img src="../images/eg_venus.gif" width="160" height="160">
        </a>
        <div class="desc">在此处添加图像的描述</div>
    </div>
</body>
</html>